﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class HTTTBUS
    {
        public bool KtHTTT(string TenHTTT)
        {
            HTTTDAO ht = new HTTTDAO();
            return ht.KtHTTT(TenHTTT);
        }
        public bool ThemHTTT(string TenTTTT)
        {
            HTTTDAO ht = new HTTTDAO();
            return ht.ThemHTTT(TenTTTT);
        }
        public List<HTTTDTO> LayHTTT()
        {
            HTTTDAO ht = new HTTTDAO();
            return ht.LayHTTT();
        }
        public HTTTDTO LayHTTTTheoMa(int MaHTTT)
        {
            HTTTDAO ht = new HTTTDAO();
            return ht.LayHTTTTheoMa(MaHTTT);
        }
        public bool SuaHTTT(string TenHTTTMoi, string TenHTTTCu)
        {
            HTTTDAO ht = new HTTTDAO();
            return ht.SuaHTTT(TenHTTTMoi, TenHTTTCu);            
        }
        public bool XoaHTTT(string TenHTTT)
        {
            HTTTDAO ht = new HTTTDAO();
            return ht.XoaHTTT(TenHTTT);
        }
    }
}
